MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: ContextContextYou are asked to prepare a Canary deployment for testing a new application release.Task:A Service named krill-Service in the goshark namespace points to 5 pod created by the Deployment named current-krill-deployment1) Create an identical Deployment named canary-kill-deployment, in the same namespace.2) Modify the Deployment so that:-A maximum number of 10 pods run in the goshawk namespace.-40% of the krill-service 's traffic goes to the canary-krill-deployment pod(s)
Question2: ContextContextA project that you are working on has a requirement for persistent data to be available.TaskTo facilitate this, perform the following tasks:* Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance* Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.* Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce* Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod
Question3: ContextTask:A Dockerfile has been prepared at -/human-stork/build/Dockerfile1) Using the prepared Dockerfile, build a container image with the name macque and lag 3.0. You may install and use the tool of your choice.2) Using the tool of your choice export the built container image in OC-format and store it at -/human stork/macque 3.0 tar
Question4: ContextTaskA Deployment named backend-deployment in namespace staging runs a web application on port 8081.
Question5: ContextContextYou are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount.TaskPlease complete the following:* Create a ConfigMap named another-config containing the key/value pair: key4/value3* start a pod named nginx-configmap containing a single container using the nginx image, and mount the key you just created into the pod under directory /also/a/path
Question6: ContextTask:Modify the existing Deployment named broker-deployment running in namespace quetzal so that its containers.1) Run with user ID 30000 and2) Privilege escalation is forbiddenThe broker-deployment is manifest file can be found at:
Question7: ContextTask:Create a Pod named nginx resources in the existing pod resources namespace.Specify a single container using nginx:stable image.Specify a resource request of 300m cpus and 1G1 of memory for the Pod's container.
Question8: ContextTaskYou are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to-a node that has those resources available.* Create a pod named nginx-resources in the pod-resources namespace that requests a minimum of 200m CPU and 1Gi memory for its container* The pod should use the nginx image* The pod-resources namespace has already been created
Question9: ContextGiven a container that writes a log file in format A and a container that converts log files from format A to format B, create a deployment that runs both containers such that the log files from the first container are converted by the second container, emitting logs in format B.Task:* Create a deployment named deployment-xyz in the default namespace, that:* Includes a primarylfccncf/busybox:1 container, named logger-dev* includes a sidecar Ifccncf/fluentd:v0.12 container, named adapter-zen* Mounts a shared volume /tmp/log on both containers, which does not persist when the pod is deleted* Instructs the logger-devcontainer to run the commandwhich should output logs to /tmp/log/input.log in plain text format, with example values:* The adapter-zen sidecar container should read /tmp/log/input.log and output the data to /tmp/log/output.* in Fluentd JSON format. Note that no knowledge of Fluentd is required to complete this task: all you will need to achieve this is to create the ConfigMap from the spec file provided at /opt/KDMC00102/fluentd-configma p.yaml , and mount that ConfigMap to /fluentd/etc in the adapter-zen sidecar container
Question10: ContextA web application requires a specific version of redis to be used as a cache.TaskCreate a pod with the following characteristics, and leave it running when complete:* The pod must run in the web namespace.The namespace has already been created* The name of the pod should be cache* Use the Ifccncf/redis image with the 3.2 tag* Expose port 6379